package com.xijia.serivce;

import com.xijia.config.aop.ExtXjCache;
import com.xijia.entity.UserEntity;
import com.xijia.mapper.UserMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@Slf4j
public class MemberService {

    @Autowired
    private UserMapper userMapper;


    @RequestMapping("/getUser")
    @ExtXjCache
    public UserEntity getUser(String id) {
        return userMapper.findByUser(id);
    }
}
